<?php if (!defined('THINK_PATH')) exit();?><div class="modal-dialog">
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title">修改昵称</h4>
        </div>
        <form action="<?php echo U('User/submitNickname');?>" method="post" autocomplete="off">
            <div class="modal-body">
                <div class="form-group">
                    <label>密码</label>
                    <input type="text" onfocus="this.type = 'password'" name="password" class="form-control" placeholder="请输入密码">
                </div>
                <div class="form-group">
                    <label>新昵称</label>
                    <input type="text" name="nickname" class="form-control" placeholder="请输入新昵称">
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default btn-sm" data-dismiss="modal">关闭</button>
                <button type="submit" class="btn btn-primary btn-sm ladda-button" data-style="slide-up">保存</button>
            </div>
        </form>
    </div>
</div>
<script type="text/javascript">
    form_post();
</script>